<template>
	<Pager
		:current="current"
		:total="total"
		@pagechange="handlePageChange($event)"
	/>
</template>

<script>
import Pager from "./";
export default {
	components: {
		Pager,
	},
	data() {
		return {
			current: 1,
			total: 302,
		};
	},
	methods: {
		handlePageChange(newPage) {
			if (newPage === this.current) {
				return;
			}
			this.current = newPage;
			console.log("加载当前页数据");
		},
	},
};
</script>

<style scoped></style>
